package com.sansheng.service.impl;

import com.sansheng.dao.UserDao;
import com.sansheng.entity.user.User;
import com.sansheng.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 陈龙
 * @version 2017年09月10日 14时31分
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> listUser() {
        return userDao.listUser();
    }

    @Override
    public void add(User user) {
        userDao.add(user);
    }
}
